<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorator="layouts/layout" th:with="header='交易反馈', subtext='管理WMS完成并反馈的收发货记录'" style="overflow: hidden;">

<head>
  <title>收发货交易</title>
</head>
<body style="overflow: hidden;">

  <th:block layout:fragment="content">
    <div id="query-area" class="box-body m-b-sm border-bottom">
      <form class="form-horizontal search-form" role="form">
        <div class="row">


          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-sm-3">物料</label>
              <div class="col-sm-9">
                <input type="text" id="material" name="material" placeholder="输入物料号搜索" class="form-control" />
              </div>
            </div>
          </div>

            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-sm-3">WBS</label>
                    <div class="col-sm-9">
                        <input type="text" id="wbsnum" name="wbsnum" placeholder="输入WBS号搜索" class="form-control" />
                    </div>
                </div>
            </div>

            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-sm-3">供应商</label>
                    <div class="col-sm-9">
                        <input type="text" id="suplier" name="suplier" placeholder="输入供应商编码搜索" class="form-control" />
                    </div>
                </div>
            </div>

            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-sm-3">单号</label>
                    <div class="col-sm-9">
                        <input type="text" id="docnum" name="docnum" placeholder="输入单号搜索" class="form-control" />
                    </div>
                </div>
            </div>


            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-sm-3">任务号</label>
                    <div class="col-sm-9">
                        <input type="text" id="taskcode" name="taskcode" placeholder="输入任务号搜索" class="form-control" />
                    </div>
                </div>
            </div>


            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-lg-3">交易类型</label>
                    <div class="col-lg-9">
                        <select id="transtype" name="transtype" class="form-control">
                            <option value=""></option>
                            <option value="RECV">收货</option>
                            <option value="SHIP">发货</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-lg-3">交易状态</label>
                    <div class="col-lg-9">
                        <select id="revstate" name="revstate" class="form-control">
                            <option value="">请选择</option>
                            <option th:each="a : ${@CODES.findByType('TRANS_STATUS')}" th:value="${a.value}" th:text="${a.name}" />
                        </select>
                    </div>
                </div>
            </div>


        </div>



        <div class="row m-t">
          <div class="col-lg-12 seach-button">
            <div class="pull-right">
              <button type="submit" id="search" class="btn btn-primary">
                <i class="fa fa-search"></i> 搜索
              </button>
              <button type="reset" id="clear" class="btn btn-danger">
                <i class="fa fa-remove"></i> 清除
              </button>
            </div>
          </div>
        </div>
      </form>
    </div>

    <div class="row">
      <div class="col-lg-12">
        <div class="box">
          <div class="box-body">
            <h2>
                <a  class="btn btn-primary btn-sm repostAll" href="javascript:;" th:title="再次上传">
                    <i class="fa fa-fw fa-plus"></i> 重传
                </a>
              <a  class="btn btn-warning btn-sm closereqAll" href="javascript:;" th:title="标记完成昨天">
                  <i class="fa fa-edit"></i> 标记完成
              </a>
              <a class="btn btn-info export" th:title="导出数据">
                 <i class="fa fa-fw fa-cloud-upload"></i> 导出
              </a>
            </h2>
            <div id="tableWrapper">
              <table id="table" class="table table-striped table-hover table-bordered table-fixed">
                  <thead style="position:sticky;top:0;z-index:10;">
                  <tr>
                      <th style="width:50px;">
                          <a href="javascript:;" class="selectAll" title="全选">全选</a>
                      </th>

                    <th style="width:140px;">创建时间</th>
                    <th style="width:70px;">交易类型</th>
                    <th style="width:100px;">物料编码</th>
                    <th style="width:180px;">名称</th>
                    <th style="width:100px;">WBS</th>
                    <th style="width:80px;">供应商</th>
                    <th style="width:60px;">数量</th>
                    <th style="width:180px;">任务号</th>
                    <th style="width:80px;">WMS批</th>
                    <th style="width:120px;">单号</th>
                    <th style="width:80px;">上传状态</th>
                    <th style="width:180px;">反馈信息</th>
                    <th style="width:100px;">备注</th>
                    <th style="width:60px;">操作</th>

                  </tr>
                </thead>
                <tbody>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>

    <form id="repostreqForm" method="post" style="display: none" th:action="@{|${baseUrl}/ca/repostreq|}">
      <input id="ids" type="hidden" name="ids" />
    </form>

    <form id="repostForm" method="post" style="display: none" th:action="@{|${baseUrl}/ca/repost|}">
      <input id="ids" type="hidden" name="ids" />
    </form>


    <form id="closereqForm" method="post" style="display: none" th:action="@{|${baseUrl}/ca/closereq|}">
       <input id="ids" type="hidden" name="ids" />
    </form>

    <form id="closeForm" method="post" style="display: none" th:action="@{|${baseUrl}/ca/close|}">
       <input id="ids" type="hidden" name="ids" />
    </form>


    <form id="delForm" method="post" style="display: none" th:action="@{|${baseUrl}/del|}">
       <input id="ids" type="hidden" name="ids" />
    </form>

    <form id="exportForm" method="post" style="display: none" th:action="@{|${baseUrl}/ca/export|}">
    </form>

  </th:block>
  <th:block layout:fragment="scripts">
    <script th:inline="javascript">
        var VALUES_MAP_DICT_TRANS_STATUS = /*[[${@CODES.valuesMapOfType('TRANS_STATUS')}]]*/ {};
    </script>
    <script th:src="@{|${theme}/js/app/edi/transupload_list.js?v=${applicationVersion}|}" th:inline="javascript"></script>
  </th:block>
</body>

</html>
